<template>
	<view class="guide">
		<view class="permission-list">
			<view class="permission-item" v-for="(item,index) in permissionList" :key="index">
				<view class="title">{{item.title}}</view>
				<view :class="['btn',item.status?'success':'error']" @click="localPermissionAuthorization">
					{{item.status?'已授权':'重新授权'}}
				</view>
			</view>
		</view>

		<!-- <button @click="startBackstage">点击开始后台</button>
		<button @click="startFindingNode">点击开始查找节点</button>
		<button @click="localPermissionAuthorization">唤起权限</button> -->
	</view>
</template>

<script>
	import barrierFree from "@/mixins/barrierFree.js"

	export default {
		mixins: [barrierFree],
		data() {
			return {

			}
		},
		methods: {}
	}
</script>

<style lang="scss" scoped>
	.guide {
		font-size: 36rpx;

		.permission-list {
			padding: 0 30rpx;

			.permission-item {
				display: flex;
				align-items: center;
				justify-content: space-between;
				height: 100rpx;
				border-bottom: 1rpx solid #ccc;

				.btn {
					padding: 10rpx 30rpx;
					border-radius: 10rpx;
				}

				.success {
					color: #55aa00;
					border: 1rpx solid #55aa00;
				}

				.error {
					color: #ff0000;
					border: 1rpx solid #ff0000;
				}
			}
		}
	}
</style>